package com.yxc.mybatisplusdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 测试，用户表
 * </p>
 *
 * @author YXC
 * @since 2023-02-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("test_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id，自增
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 用户名
     */
    @TableField("user_name")
    private String userName;

    /**
     * 性别；0: 未知, 1: 男, 2: 女
     */
    @TableField("sex")
    private Boolean sex;

    /**
     * 身高，单位cm
     */
    @TableField("height")
    private Double height;

    /**
     * 是否禁用; 1: 禁用, 0: 启用
     */
    @TableField("disable")
    private Boolean disable;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;


}
